<div ng-include src="'tpl/public/header.html?1'"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/news/list">消息列表</a></li>
    <li class="active">{{id ? '编辑' : '添加'}}</li>
  </ol>
  <form class="form-horizontal" role="form" name="form" novalidate ng-submit="save()">
    <div class="form-group" ng-class="{'has-error':form.fpJpushTitle.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span> 消息标题
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="fpJpushTitle" ng-model="news.fpJpushTitle" required="required" placeholder="消息标题">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.fpJpushContent.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span> 消息副标题
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="fpJpushContent" ng-model="news.fpJpushContent" required="required" placeholder="消息副标题">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.fpJpushRedrict.$invalid}">
      <label class="col-sm-2 control-label">
        <span class="required">*</span> 消息地址
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" autocomplete="off" value="" name="fpJpushRedrict" ng-model="news.fpJpushRedrict" required="required" placeholder="消息地址">
      </div>
    </div>

    <div class="form-group">
      <label class="col-sm-2 control-label">
        <span class="required">*</span> 推送方式
      </label>
      <div class="col-sm-5">
        <label class="radio-inline">
          <input type="radio" name="fpJpushSendType" value="02" ng-model="news.fpJpushSendType">定时推送
        </label>
        <label class="radio-inline">
          <input type="radio" name="fpJpushSendType" value="01" ng-model="news.fpJpushSendType">及时推送(保存后及时推送!无法撤回!)
        </label>
      </div>
    </div>

    <div ng-if="news.fpJpushSendType == '02'" class="form-group" ng-class="{'has-error':form.fpJpushSendTimeStr.$invalid}">
      <label class="col-sm-2 control-label"></label>
      <div class="col-sm-5">
        <input type="datetime-local" class="form-control" autocomplete="off" value="" name="fpJpushSendTimeStr" ng-model="news.fpJpushSendTimeStr" required="required">
      </div>
    </div>
    
    <div class="form-group">
      <label class="col-sm-2 control-label">&nbsp;</label>
      <div class="col-sm-5"> 
        <input type="submit" class="btn btn-primary" value="保存" />
      </div>
    </div>
  </form>
</div>
<div load-script src="'/static/jquery.jUploader-1.01.js?5'" call-back="" charset="utf-8"></div>
